<div id="user_menu">
	<div class="container_24">
		<div class="grid_24">
			<?php echo $this->renderPartial('_menu', array('title'=>'Yii Rock!')); ?>
		</div>	
	</div>
</div>
<div class="clear"></div>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-setting-form',
	'enableAjaxValidation'=>true,
)); ?>

<div class="row email-setting">
	<?php $tabs = array(
		//array('title'=>'Welcome(by admin)','view'=>'_setting_admin_email','data'=>array('model'=>$model,'form'=>$form)),
		//array('title'=>'Welcome(Approval)','view'=>'_setting_approval_email','data'=>array('model'=>$model,'form'=>$form)),
		//array('title'=>'Welcome(Visitor)','view'=>'_setting_visitor_email','data'=>array('model'=>$model,'form'=>$form)),
		//array('title'=>'Password','view'=>'_setting_password_email','data'=>array('model'=>$model,'form'=>$form)),
		//array('title'=>'Activation','view'=>'_setting_activated_email','data'=>array('model'=>$model,'form'=>$form)),
	);?>
	
	<?php foreach($themes as $themeItem):?>
	<?php $themeItem->info = json_decode($themeItem->info,true);?>
	
	<?php $tabs[] = array('title'=>$themeItem->info['name'],'view'=>'_block_list','data'=>array('model'=>$model,'theme'=>$themeItem));?>
	<?php endforeach;?>
	
	<?php $this->widget('CTabView',array('tabs'=>$tabs,'cssFile'=>Yii::app()->theme->baseUrl.'/css/jquery.tabs.css')) ?>
</div>

<?php $this->endWidget();?>